package com.dh.repository;

import com.dh.entity.UserRP;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRPRepository extends JpaRepository<UserRP, Long> {

    Page<UserRP> findByDeleted(byte deleted, Pageable pageable);


    void deleteByUserId(Long userId);

    UserRP findByNoAndDeleted(String no, byte deleted);


}


